home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / Xitami Multithreaded Web Server.exe / TESTCGI7.C < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-19  |  1.4 KB  |  40 lines

  1. /*  ----------------------------------------------------------------<Prolog>-
  2.     Name:       testcgi7.c
  3.     Title:      CGI test program
  4.     Package:    Xitami web server
  5.  
  6.     Written:    97/05/09  Pieter Hintjens <ph@imatix.com>
  7.     Revised:    97/07/30  Pieter Hintjens <ph@imatix.com>
  8.  
  9.     Synopsis:   Simulates a looping CGI process.  Use it to test the server's
  10.                 response to a looping CGI process.  You can end the program
  11.                 by creating an empty file called 'break'.
  12.  
  13.                 To build this program you must download the SFL package from
  14.                 www.imatix.com.
  15.  
  16.     Copyright:  Copyright (c) 1997 iMatix
  17.     License:    This is free software; you can redistribute it and/or modify
  18.                 it under the terms of the XITAMI License Agreement as provided
  19.                 in the file LICENSE.TXT.  This software is distributed in
  20.                 the hope that it will be useful, but without any warranty.
  21.  ------------------------------------------------------------------</Prolog>-*/
  22.  
  23. #include "sfl.h"
  24.  
  25. int
  26. main (int argc, char *argv [])
  27. {
  28.     file_delete ("break");
  29.     while (!file_exists ("break"));
  30.     file_delete ("break");
  31.  
  32.     puts ("Content-Type: text/html");
  33.     puts ("");
  34.     puts ("<HTML><BODY>");
  35.     puts ("Testcgi7 was able to complete normally.");
  36.     puts ("</BODY></HTML>");
  37.  
  38.     return (EXIT_SUCCESS);
  39. }
  40.